package cn.onesdream.app.dao.mapper;

import cn.onesdream.app.dao.entity.Card;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface CardMapper extends BaseMapper<Card> {
    /**
     * 根据星球id获取星球详细信息
     * @param planetId
     * @return
     */
    Card getCardByPlanetId(Integer planetId);

    /**
     * 根据id数组获取卡片列表
     * @param cardId
     * @return
     */
    List<Card> getByIds(Integer [] cardId);
}
